<?php
namespace App\Services\Admin;

use App\Repositories\Admin\ComStaffsRepository;

class ComStaffService
{
    private $service;

    public function __construct()
    {
        $this->service = new ComStaffsRepository();
    }

//    public function getIndex()
//    {
//        return $this->service->getIndexList();
//    }

    public function add($data)
    {
        return $this->service->setAdd($data);
    }

    public function modify($data,$id)
    {
        return $this->service->setModify($data,$id);
    }

    public function getOne($id)
    {
        return $this->service->getShowOne($id);
    }

    public function getOneByUid($cid)
    {
        return $this->service->getShowByCid($cid);
    }
}